﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Ymatou.ServiceCenter.Domain.Models;

namespace Ymatou.ServiceCenter.Domain.IRepositories
{
    public interface IServiceConfigRepository : IRepositoryBase<ServiceConfig>
    {
        ServiceConfig GetServiceConfig(string consumerAppId, string providerAppId);

        IList<ServiceConfig> GetServiceConfigByConsumerAppId(string consumerAppId);

        IList<ServiceConfig> GetServiceConfigByProviderAppId(string providerAppId);

        IList<ServiceConfig> GetServiceConfigs(string appId, long? lastUpdateTicks);

        int TryInsert(ServiceConfig entity);

        bool TryUpdate(ServiceConfig entity);
    }
}
